package org.javaboy.usetimelog.controller;

import org.javaboy.timelog.anno.TimeLog;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {

    @GetMapping("/hello")
    @TimeLog
    public String hello() throws InterruptedException {
        Thread.sleep(50);
        return "hello";
    }
}
